/*
 * Part of knowledge engineering (ke) course work, 2010/11
 */
package se.bth.ke.firstfriend.dto;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nico.rehwaldt
 */
@XmlRootElement
public class ActionStatus {

    @XmlAttribute
    private String status;

    @XmlAttribute
    private String url;

    @XmlAttribute
    private Long id;

    public ActionStatus() {}
    
    public ActionStatus(String status, String url, Long id) {
        // Text message of the action (e.g. transaction successful)
        this.status = status;
        // Url where a redirect should be targeted to
        this.url = url;
        // Id of the created/changed object
        this.id = id;
    }

    public ActionStatus(String status) {
        this.status = status;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }
}
